package IBBB.view;

import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;

import java.io.IOException;

public class RootPane {
    @FXML
    private TabPane rootPane;
    private ObservableList<Tab> tabs;
    @FXML
    private void initialize() throws IOException {
        tabs = rootPane.getTabs();
        BorderPane b = (BorderPane)tabs.get(0).getContent();
        AnchorPane anchorPane = (AnchorPane) FXMLLoader.load(getClass().getResource("NewWords.fxml"));
        b.setCenter(anchorPane);
    }
}
